<form class="form" role="form" action="update" method="post" id="form">
    <input type="hidden" name="id" value="{$result.pap_id}">
    <div class="form-group">
        <label>试卷名称</label>
        <input class="form-control" type="text" name="name" value="{$result.pap_name}">
        <p class="help-block">输入少于30个中文字体的标题</p>
    </div>
    <div class="form-group">
        <label>试卷类型</label>
        <select class="form-control" name="type">
            <option value="1" <?php if($result['pap_type'] == 0) echo "selected" ?>>选择题（包括了多选题）</option>
            <option value="2"  <?php if($result['pap_type'] == 1) echo "selected" ?>>问答计算代码题</option>
        </select>
    </div>
    <div class="form-group">
        <label for="所用时间">考试所需要的时间</label>
        <input class="form-control" type="text" name="time" value="30">

    </div>
    <div class="form-group">
        <label>备注（是什么试卷）</label>
        <textarea class="form-control" name="mark">{$result.pap_mark}</textarea>
    </div>
    </div>
    <div class="form-group">
        <div type="button" class="btn btn-primary" onclick="edu.submit('form',this)">确定</div>
    </div>
</form>
<div class="clearfix"></div>
